<?php
namespace app\api\controller;
use think\Session;
use think\Cookie;
use think\Controller;
class Base extends  Controller
{
	public $state;

	public function _initialize()
	{
	    // 判断指定前缀的Session值是否存在
		if(!Session::has('account','think') || Session::get('account','think') !== Cookie::get('account','think_'))
		{
            $this->state = -1;
        
		}

	}
	

}